﻿@{
    ViewBag.Title = "Import";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

    <form method="post" id="paintingform" action="" target="_blank" enctype="multipart/form-data"> 
        <label>图片ID(多个用“,”隔开)</label>
        <input type="text" class="text-input small-input" name="paintings"/>
        <input type="button" class="button" onclick="excel();" value="导出Excel"/>
        <input type="button" class="button" onclick="zip();" value="下载图片"/>
    </form>
    <script>
        function excel() {
            $("#paintingform").attr("action", "/admin/painting/exportexcel");
            $("#paintingform").submit();
        }
        function zip() {
            $("#paintingform").attr("action", "/admin/painting/exportzip");
            $("#paintingform").submit();
        }
    </script>